<!--{*Part of the CEFIRO project by dyrtech.com.ve. Copyleft GPLv3 2007. Please see the disclaimer at the root of the project: http://dyrtech.com.ve/cefiro/license.txt*}-->
﻿<html>
  <head>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type" content="no-cache">
  <title>File upload</title>
  {literal}
  <script type="text/javascript">
    function changeLocParams( strParams ){
      loc = document.location.href;
      idx = loc.indexOf('?');
      if ( 0 < idx && idx < loc.length )
        loc = loc.substring( 0, idx );
      document.location.href = loc + '?' + strParams;
    }
  </script>
  {/literal}
  </head>
  <body marginheight="0" marginwidth="0">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
      <tr style="cursor:pointer;">
      {if $nombre == NULL}
        <td>
          <form name="iform" action="" method="post" enctype="multipart/form-data" >
            <input type="file" id="file" name="file" onchange="document.iform.submit()"/>
          </form>
        </td>
      {else}
        <td>
          <div style="font-family: Tahoma, Arial, Verdana, Geneva, Helvetica, sans-serif; font-size: 13px; text-align: left; vertical-align:middle;  color:#305881;">
            {$nombre}
          </div>
        </td>
        <td width="25px" align="center">
          <img src="img/guardar_archivo.png" onclick="changeLocParams('action=show&fileid={$idarchivo}');" title="Descargar {$nombre}" align="absmiddle">
        </td>
        <td width="25px" align="center">
          <img src="img/borrar_archivo.png" onclick="changeLocParams('action=delete&fileid={$idarchivo}');" title="Eliminar {$nombre}" align="absmiddle">
        </td>
      {/if}
      </tr>
    </table>
  </body>
</html>